package com.zzyl.nursing.controller.member.service;


import com.zzyl.nursing.dto.AppointmentDto;
import com.zzyl.nursing.vo.AppointmentMessageVo;
import com.zzyl.nursing.vo.CountByTimeVo;

import java.util.List;


public interface MemberOrderService {
    //1.查询取消预约数量

    int getCancelledCount();

    //2.查询每个时间段剩余预约次数
    List<CountByTimeVo> getCountByTime(Long time);

    //3.新增预约
    void addReservation(AppointmentDto appointmentDto);

    //查询预约
    AppointmentMessageVo selectAppointment(Integer page, Integer pageSize, Integer status);

    //取消预约
    void cancelAppointment(Long id);

    //更新预约状态
    void changeAppointmentStatus();
}
